<!DOCTYPE html>
<html lang="en">
    <head>
	    <meta charset="utf-8">
	    <title>后台管理系统</title>
	    <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
	    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	    <meta name="description" content="">
	    <meta name="author" content="">
	    {load href="/static/css/bootstrap.css" /}
	    {load href="/static/css/theme.css" /}
	    {load href="/static/css/font-awesome.css" /}
	    {load href="/static/js/jquery-1.7.2.min.js" /}
	    <!-- Demo page code -->
	    <style type="text/css">
	        #line-chart {
	            height:300px;
	            width:800px;
	            margin: 0px auto;
	            margin-top: 1em;
	        }
	        .brand { font-family: georgia, serif; }
	        .brand .first {
	            color: #ccc;
	            font-style: italic;
	        }
	        .brand .second {
	            color: #fff;
	            font-weight: bold;
	        }
	    </style>
	    <link rel="shortcut icon" href="../assets/ico/favicon.ico">
	    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
	    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
	    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
	    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
  </head>
  <body class="">  
  	{include file="public:header"}
  	{include file="public:left"}
    <div class="content">  
        <div class="header">
            <div class="stats">
    			<p class="stat"><span class="number" id="date"></span>日</p>
   	 			<p class="stat"><span class="number" id="month"></span>月</p>
    			<p class="stat"><span class="number" id="year"></span>年</p>
			</div>
        	<h1 class="page-title">商品管理</h1>
        </div>
       	<ul class="breadcrumb">
            <li><a href="index.html">Admin</a> <span class="divider">/</span></li>
            <li class="active">edit_pro_cates</li>
        </ul>
    	<div class="container-fluid">
        	<div class="row-fluid">
				<div style="float:right; margin-top: 1em;">
	    			<a href='{:url("admin/product/product_list")}' class="btn btn-danger">商品列表</a>				    
	    			<a href='{:url("admin/product/add_product")}' class="btn btn-success">添加商品</a>
	    			<a href='{:url("admin/product/pro_cates")}' class="btn btn-primary">分类列表</a>
	    			<a href='{:url("admin/product/add_pro_cates")}' class="btn btn-warning">添加分类</a>		    
				</div>
				<h3>&nbsp;&nbsp;&nbsp;修&nbsp;改&nbsp;分&nbsp;类</h3>
				<div id='calendar'>
					{assign name="i" value="1"}
					<table cellspacing="0px" border="0px" align="">
						<form action="" method="post">
							<tr>
								<td width="100px"></td>
								<td>分类父级:</td>
								<td>
									<select name="pc_f_id">
										<option value="0">顶级分类</option>
										{foreach $cates as $v}
											<option value="{$v['id']}" {$data['pc_f_id']==$v['id']?"selected":''} >
												{$v['pc_name']}
											</option>
										{/foreach}
									</select>
								</td>
							</tr>
							<tr>
								<td width="100px"></td>
								<td width="70px">分类名称:</td>
								<td>
									<input type="text" name="pc_name" value="{$data['pc_name']}">
								</td>
							</tr>
							<tr>
								<td width="100px"></td>
								<td>&nbsp上&nbsp;下&nbsp架:</td>
								<td>
									<input type="radio" name="ifshow" value="0" {$data['ifshow']==0?"checked":""}>下架
									&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="radio" name="ifshow" value="1" {$data['ifshow']==1?"checked":""}>上架
								</td>
							</tr>
							<tr>
								<td width="100px"></td>
								<td colspan="2" align="center">
									<input type="submit" name="sub" value="修改">
								</td>	
							</tr>
						</form>
					</table>
				</div>                   
			    {include file="public:footer"}           
            </div>
        </div>
    </div>
    {load href="/static/js/bootstrap.js" /}
    <script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
        var d=new Date
        $("#year").html(d.getFullYear())
        $("#month").html(d.getMonth()+1)
        $("#date").html(d.getDate())
    </script>
  </body>
</html>


